#pragma once

namespace ImMan {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

  public ref class ImageManager
  {
  public:
    static void DibujaFicha(PictureBox ^pb)
    {
      PointF punto;
      Image ^ficha = Image::FromFile( "./Img/bamboo1.png" );
      //Graphics ^ficha = Graphics::FromImage(Image::FromFile( "./Img/bamboo1.png" ) );
      
      Bitmap ^default_image = gcnew Bitmap(pb->Image);

      Graphics ^completo = Graphics::FromImage( default_image );

      punto.X = 100;
      punto.Y = 100;

      completo->DrawImage( ficha, punto );

      pb->Image = default_image;

      pb->Refresh();

    }
  };
}
